package com.javapatterns.observerawt.mouse1;

import java.awt.Frame;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;

public class ConcreteSubject extends Frame implements MouseListener {
	/**
	 * @link aggregation
	 */
	private static MouseListener m;

	public ConcreteSubject() {
	}

	public void mouseClicked(MouseEvent e) {
		System.out.println(e.getWhen());
	}

	public void mousePressed(MouseEvent e) {
	}

	public void mouseReleased(MouseEvent e) {
	}

	public void mouseEntered(MouseEvent e) {
	}

	public void mouseExited(MouseEvent e) {
	}

	public static void main(String[] argv) {
		ConcreteSubject s = new ConcreteSubject();;
		s.setBounds(100, 100, 100, 100);
		s.addMouseListener(s);
		s.show();
	}
}
